package com.jshcbd.modules.asset.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jshcbd.modules.asset.dto.ReceiveDto;
import com.jshcbd.modules.asset.entity.AssetEntity;
import com.jshcbd.modules.asset.vo.AssetVo;
import com.jshcbd.modules.asset.vo.ChartVo;

import java.util.List;


/**
 * @author zhoucd
 * @date
 * @description
 */

public interface IAssetService extends IService<AssetEntity>  {

    /**
     * 领用
     * @param receive
     */
    void doReceive(ReceiveDto receive) throws Exception;



    IPage<AssetVo> pageView(Page<AssetVo> page, Wrapper wrapper);

    List<AssetVo> listView(Wrapper wrapper);

    List<ChartVo> pieByState();


    List<ChartVo> pieByType();

    List<ChartVo> pieByClassess();

    List<ChartVo> groupByInstoreDate(Integer year);

}
